﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MvcEngine.Core.Content;
using MvcEngine.Core.Pagination;

namespace MvcEngine.Core.Repositories
{
    public interface IPageRepository
    {
        IPagination<Page> GetAll(Guid siteId, int pageIndex, int count);

        IList<Page> GetAll(bool onlyVisible, Guid siteId);

        void Update(Page entity);

        void Add(Page entity);

        void Delete(Guid pageId);

        void DeleteAll(Guid siteId);

        Page Get(string pageName, Guid siteId);

        Page Get(Guid pageId);
    }
}
